home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 24 / AACD 24.iso / AACD / Online / Epic4 / share / epic / help / 6_functions / numwords < prev    next >
Text File  |  2001-03-21  |  635b  |  23 lines

  1. Synopsis:
  2.    $numwords(<word list>)
  3.  
  4. Technical:
  5.    This function serves as a replacement for the $#var notation when you
  6.    want to count the words in a string not held in a variable.
  7.  
  8. Practical:
  9.    This function is used to count the number of words in an arbitrary
  10.    string.  Normally, you could get this value with the $#var form, but
  11.    that doesn't work for parameter expandos or function return values.
  12.  
  13. Returns:
  14.    number of words in given string
  15.  
  16. Examples:
  17.    $numwords(hello there bob)                returns 3
  18.    $numwords()                               returns 0
  19.  
  20. See Also:
  21.    Special_Vars(7); strlen(6)
  22.  
  23.